// 关联评估--接口
import request from "@/utils/request.js";


//新增
export function addRelate(data) {
  return request({
    url: `/system/control`,
    method: 'post',
    data
  })
}

//修改
export function editRelate(data) {
  return request({
    url: `/system/control`,
    method: 'put',
    data
  })
}

//导出
export function exportRelate(data) {
  return request({
    url: `/system/control/export`,
    method: 'post',
    data
  })
}

//查询
export function listRelate(query) {
  return request({
    url: `/system/control/list`,
    method: 'get',
    params: query
  })
}

//删除
export function deleteRelate(ids) {
  return request({
    url: `/system/control/${ids}`,
    method: 'delete',
  })
}

//详情
export function detailRelate(id) {
  return request({
    url: `/system/control/${id}`,
    method: 'get',

  })
}